package com.learning.dubbo.base.config.annotation.provider;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.PropertySource;

/**
 * ClassName: Provider
 * Description:
 * Date: 2020/6/15 13:43 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@EnableDubbo(scanBasePackages = "com.learning.dubbo.base.config.annotation.provider")
@PropertySource("classpath:provider.properties")
public class Provider {
    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Provider.class);
        context.start();
        System.in.read(); // 按任意键退出
        context.close();
    }
}